1 Attachment(s)
[RESOLVED] Cant Debug.... Accidentally clicked on something? (Debugging issue)
I was working on this for quite some time then tried to debug it, and it wont run. I have debugged it a ton of times before this. Would anyone have a clue as to why this is happening? You can see the "stop" button but no form comes up in debug mode. Also when I create a "release" version it will not run as well. PS: This has nothing to do with the above but does clear up some troubleshooting aspects.... I reformatted my PC just yesterday as it was long past due. The debugging issue happened before i reformatted so the install of VB 2015 is fresh, FYI.
Bigger Picture: Here
Attachment 137941
Re: Cant Debug.... Accidentally clicked on something? (Debugging issue)
If you place a breakpoint on the Load event handler of the startup form, does it get hit? What about a breakpoint on the Startup event of the application?
Re: Cant Debug.... Accidentally clicked on something? (Debugging issue)
Quote:
Originally Posted by
jmcilhinney
If you place a breakpoint on the Load event handler of the startup form, does it get hit? What about a breakpoint on the Startup event of the application?
I found out it is something with the code not allowing it to execute. Im going to try your break-point suggestion.
Re: Cant Debug.... Accidentally clicked on something? (Debugging issue)
Quote:
Originally Posted by
jmcilhinney
If you place a breakpoint on the Load event handler of the startup form, does it get hit? What about a breakpoint on the Startup event of the application?
Ok, the problem is this piece of code:
Code:
Dim num As Double = 1
Dim idealWrap As Double
While ((cordDiamIN * num) / coreDiamIN * 100D) <= 100D
num += 1
End While
Does anyone see a prob with it? It doesn't give me any errors.
Re: Cant Debug.... Accidentally clicked on something? (Debugging issue)
I tested it seems to be working but I set the cordDiamIN and coreDiamIN both to doubles it's possible yours might be set as something else that might be the issue not sure though. If those are currently strings or something else then you can convert them to doubles using a code like this.
vb.net Code:
While ((CDbl(cordDiamIN) * num) / CDbl(coreDiamIN) * 100D) <= 100D
num += 1
End While
Re: Cant Debug.... Accidentally clicked on something? (Debugging issue)
[QUOTE=Vexslasher;5046433]I tested it seems to be working but I set the cordDiamIN and coreDiamIN both to doubles it's possible yours might be set as something else that might be the issue not sure though. If those are currently strings or something else then you can convert them to doubles using a code like this.
Thanks the the response Vex. I found out what it was. Stepped into code and found cordDiamIN was = 0 so I put the While loop nested in an If statement so once the numbers got their proper values it triggered properly.
Thanks for all the responses. LOL, i had originally thought i clicked on something...