Breakpoints in VB.NET

  • Thread starter Thread starter Vidar Martinsen
  • Start date Start date
V

Vidar Martinsen

Hi
I try to debug my program with breakpoints, but even if it the breakpoint is
first in the form Load for the start-form, it seams to continue running
and I have a very dificult time debugging becouse it seams to not stop at my
breakpoints but continue running some how??

Is it possible thath it is more than one thread?
Is it posible to forse one thread, so I can debug my aplication in a safe
way.

(It is quite a large program and I have used several weeks to convert it
from VB6
I have tryed to get rid of all VB6 spesific controls and so on)

Regards
Vidar
 
Vidar, make sure you are running your application in debug mode and not
release mode.

~Brian
 
Hello,

Vidar Martinsen said:
I try to debug my program with breakpoints, but even
if it the breakpoint is first in the form Load for the
start-form, it seams to continue running and I have a
very dificult time debugging becouse it seams to not
stop at my breakpoints but continue running some how??

Are you running in Debug mode? Select the Debug configuration in the
combobox embedded in the VS.NET toolbar (when running with the Release
configuration, no breakpoints will be reached).
 
Hi
Yes, I run in Debug mode.
My configuration manager say Debug (not release)
Vidar
 
I try to debug my program with breakpoints, but even if it the
breakpoint is first in the form Load for the start-form, it seams to
continue running and I have a very dificult time debugging becouse it

Make sure you are in debug mode. Just a random thought.

Chris
 
Hi

Yes

I run in debug mode!

The thing is, It stops, and the yellow backcolour apears as it shoud, but it
continue anyeay and displays a msgbox I have in a procedure later in the
program. If I put a brakpointin this procedure it wont stop at this
breakpoint! Because I converted from VB6 the output debug window shows this
list: (this list comes ut after the program has stopped at the breakpoint,
and my msgboks coms up from a procedure later in the program.)



'DefaultDomain': Loaded
'c:\windows\microsoft.net\framework\v1.0.3705\mscorlib.dll', No symbols
loaded.

'MUPKvalitet': Loaded
'c:\windows\assembly\gac\system\1.0.3300.0__b77a5c561934e089\system.dll', No
symbols loaded.

'MUPKvalitet': Loaded
'c:\windows\assembly\gac\system.drawing\1.0.3300.0__b03f5f7f11d50a3a\system.
drawing.dll', No symbols loaded.

'MUPKvalitet': Loaded
'c:\windows\assembly\gac\system.directoryservices\1.0.3300.0__b03f5f7f11d50a
3a\system.directoryservices.dll', No symbols loaded.

'MUPKvalitet': Loaded
'c:\windows\assembly\gac\system.messaging\1.0.3300.0__b03f5f7f11d50a3a\syste
m.messaging.dll', No symbols loaded.

'MUPKvalitet': Loaded
'c:\windows\assembly\gac\system.serviceprocess\1.0.3300.0__b03f5f7f11d50a3a\
system.serviceprocess.dll', No symbols loaded.

'MUPKvalitet': Loaded
'c:\windows\assembly\gac\system.data\1.0.3300.0__b77a5c561934e089\system.dat
a.dll', No symbols loaded.

'MUPKvalitet': Loaded
'C:\_Prod-losning-V1-2004\MUP-Kvalitet-02\bin\MUPKvalitet.exe', Symbols
loaded.

'MUPKvalitet.exe': Loaded
'c:\windows\assembly\gac\system.xml\1.0.3300.0__b77a5c561934e089\system.xml.
dll', No symbols loaded.

'MUPKvalitet.exe': Loaded
'c:\windows\assembly\gac\microsoft.visualbasic\7.0.3300.0__b03f5f7f11d50a3a\
microsoft.visualbasic.dll', No symbols loaded.

'MUPKvalitet.exe': Loaded
'c:\windows\assembly\gac\system.windows.forms\1.0.3300.0__b77a5c561934e089\s
ystem.windows.forms.dll', No symbols loaded.

'MUPKvalitet.exe': Loaded
'c:\windows\assembly\gac\microsoft.visualbasic.compatibility\7.0.3300.0__b03
f5f7f11d50a3a\microsoft.visualbasic.compatibility.dll', No symbols loaded.

'MUPKvalitet.exe': Loaded
'c:\_prod-losning-v1-2004\mup-kvalitet-02\bin\axinterop.shdocvw.dll', No
symbols loaded.

'MUPKvalitet.exe': Loaded
'c:\windows\assembly\gac\accessibility\1.0.3300.0__b03f5f7f11d50a3a\accessib
ility.dll', No symbols loaded.

'MUPKvalitet.exe': Loaded
'c:\_prod-losning-v1-2004\mup-kvalitet-02\bin\interop.shdocvw.dll', No
symbols loaded.
 
Hi

Yes, I have a prosedure later in the program for Error trapping. This
procedure has a line for displaying a msgbox This msgbox comes up, even if I
set a breakpoint at it, and even if I have a breakpoint at Sub Main and I
order the program to start at Sub Main (to be shore it wont run anything
before the breakpoint.) And the program stops at the first breakpoint OK.

Regards

Vidar

"Cor" <[email protected]> skrev i melding
 
Vidar,
I d'nt understand, you say it does not stop and then.
and I have a very dificult time debugging becouse it seams to not stop at my
breakpoints but continue running some how??
And the program stops at the first breakpoint OK.

Does it stop, or does it not stop?

Cor
 
Back
Top