Results 1 to 6 of 6

Thread: [RESOLVED] Cant Debug.... Accidentally clicked on something? (Debugging issue)

  1. #1

    Thread Starter
    Lively Member CHEEZEnCRACKERS's Avatar
    Join Date
    Feb 2012
    Location
    Kentucky
    Posts
    67

    Resolved [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

    Name:  Capture.jpg
Views: 492
Size:  21.2 KB
    Last edited by CHEEZEnCRACKERS; May 13th, 2016 at 10:46 PM.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Lively Member CHEEZEnCRACKERS's Avatar
    Join Date
    Feb 2012
    Location
    Kentucky
    Posts
    67

    Re: Cant Debug.... Accidentally clicked on something? (Debugging issue)

    Quote Originally Posted by jmcilhinney View Post
    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.

  4. #4

    Thread Starter
    Lively Member CHEEZEnCRACKERS's Avatar
    Join Date
    Feb 2012
    Location
    Kentucky
    Posts
    67

    Re: Cant Debug.... Accidentally clicked on something? (Debugging issue)

    Quote Originally Posted by jmcilhinney View Post
    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.

  5. #5
    Hyperactive Member Vexslasher's Avatar
    Join Date
    Feb 2010
    Posts
    429

    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:
    1. While ((CDbl(cordDiamIN) * num) / CDbl(coreDiamIN) * 100D) <= 100D
    2.             num += 1
    3.         End While
    Last edited by Vexslasher; May 14th, 2016 at 01:12 PM.

  6. #6

    Thread Starter
    Lively Member CHEEZEnCRACKERS's Avatar
    Join Date
    Feb 2012
    Location
    Kentucky
    Posts
    67

    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...
    Last edited by CHEEZEnCRACKERS; May 14th, 2016 at 02:05 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width