Results 1 to 9 of 9

Thread: Breakpoints in vb.net?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2002
    Posts
    93

    Breakpoints in vb.net?

    I searched the board for breakpoints, and all the threads just said to set build to Debug, but that is what mine is set to.

    But no matter where I set my breakpoints, it says they won't be hit.
    Sometimes for "no symbols loaded" or "no executable code on this line".

    How do I get the breakpoints to actually, you know, break?

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Try deleting your bin folder then rebuild. I had a similar problem and that fixed it.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jul 2002
    Posts
    93
    that didn't do it, same message.

  4. #4
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Maybe delete the solution files and start the the project by double clicking the project file to make a new solution.???

  5. #5
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    I can think of three possibilites.
    1- you are using Release not Debug in the configuration manager, you can see it in the tool bar at top of IDE.
    2- You have removed the tick for the Build in Configuration manager
    3- if thats an ASPX file, removed the Debug=True from page directives.
    'Heading for the automatic overload'
    Marillion, Brave, The Great Escape, 1994

    'How will WE stand the FIRE TOMORROW?'
    Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Jul 2002
    Posts
    93
    I'm using Debug, Build is checked, and it's not an ASP file, anyone else have an idea?

  7. #7
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    So what exactly is the problem? Does it not let you place the breakpoints because it says 'no executable code' or do you set the breakpoints but they don't break. Is the problem with just this project or do they all do this? If all else fails try a reinstall.

  8. #8

    Thread Starter
    Lively Member
    Join Date
    Jul 2002
    Posts
    93
    It sets them, but when I try to run it they get replaced with icon with a ? in the center.

    This is the only thing I've done in VB.NET, so I don't know if it's a program wide problem

  9. #9
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    The ? is normal it always shows that at runtime. Are you sure the code you are setting the breakpoint at is getting run? Just make a simple app or part in yout app to test the breakpoints. Or set it in a form_load event of the startup form to make sure its not the specific location you are trying.

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