all groups > visual studio .net debugging > june 2007 >
You're in the

visual studio .net debugging

group:

Step into does not work



Step into does not work Ton
6/18/2007 8:28:02 AM
visual studio .net debugging: I'm using VB.NET for webforms as windows forms. I come from vb6 and the Step
into feature (F8 in vb6) was a big plus in debugging the software.
When I use the step into in VS.NET i have to click several times to get the
same result. Example:
x=4 (1 click)
y=2 (1 click)
Tabel.BorderStyle = BorderStyle.Outset (5 clicks)
Tabel.BorderColor = Drawing.Color.Blue (13 clicks)
Tabel.GridLines = GridLines.Horizontal (5 clicks)
Tabel.BorderWidth = Unit.Pixel(1) (15 clicks)

I supposse that underneath these lines other procedures are called, but why
should i have to "click" or each of them. Is it something i can modify?

Please reply, it is a time consuming behaviour

Thanx

ton

Re: Step into does not work Stevanich
9/1/2007 12:54:58 AM
Ton,

Check your setting in the Debugging option page (Tools > Options >
Debugging) including the setting for Enable Just My Code.

Also yes, the key mappings are a little different, and some the same, in
Visual Studio .NET.

Debug/Continue - F5
Step Over - F10 or SHIFT+F8
Step Into - F11 or F8
Step Out - SHIFT+F11 or CTRL+SHIFT+F8

For a full list of key commands, check out:
http://www.microsoft.com/downloads/details.aspx?FamilyID=6bb41456-9378-4746-b502-b4c5f7182203&displaylang=en

Hope this helps,


Steve

[quoted text, click to view]

Re: Step into does not work Stevanich
9/1/2007 1:00:12 AM
Ton,

You may also want to check the "Enable unmanaged code debugging" project
option.


Hope this helps,

Steve

[quoted text, click to view]

Re: Step into does not work Ton
9/4/2007 1:20:03 AM
it still does NOT work. there must be something what causes this. In VB6
pressing F8 just executes the current line and switches over to the second.
How is this by others in VB2005. I sometimes have to press 5 or 6 times on
F11, because what seems to be code I that is excuted but I do not see it.
Simple statements are 1xF11 complex statements with objects differs from 2
till 8 or 9 clicks. (By the way this is on websites).

Can some one tell me how the behavior of F11 is on their pc??

thx

ton

[quoted text, click to view]
Re: Step into does not work Stevanich
9/4/2007 7:56:23 PM
Ton,

F11 is the Step Into command. You might try F10 which is Step Over.

Also, right-click on your project(s) and choose Properties. Go to the Debug
tab, and make sure "Enable unmanaged code debugging" is unchecked.

Hope this helps,


Steve

[quoted text, click to view]

Re: Step into does not work Ton
9/5/2007 1:06:03 AM
F10 and F11 both do no work, in what I expect and the project option:
"Enable unmanaged code debugging" where exact can I found it.

thx

ton


[quoted text, click to view]
Re: Step into does not work Ton
9/5/2007 12:50:01 PM
i ve found where the checkbox is. It was off. But switching it on or off,
there was no difference. Can anyone tell me, how F11 and F10 walks through
their code on their pc's. It is still unbelievable i have to press several
times on F10 or F11 to get to the next line. In case of an object it can be
more then 10 clicks!! This is no debugging, the alternatieve a breakpoint on
everyline is not nice as well.

ton



[quoted text, click to view]
Re: Step into does not work Stevanich
9/5/2007 4:40:44 PM
Ton,

Do you have any custom keyboard mappings set? You may try resetting the
keyboard mappings. Go to "Tools" > "Customize". Click the "Keyboard..."
button in the bottom left corner. In the top right of the Options dialog
that pops up, there is an option to reset your keyboard mapping.

I'm not sure this will solve your problem, but it's one more thing to
eliminate.

Hope this helps,

Steve - dotneticated.com



[quoted text, click to view]

Re: Step into does not work Ton
9/21/2007 8:08:05 AM
reset does not work
it looks like it steps to the assembly:
00000000 push esi
00000001 push eax
00000002 mov esi,edx
00000004 test ecx,ecx
00000006 je 002C5CF0
0000000c mov eax,dword ptr [ecx]

whta I done now I don't know but i found out tat the numbers of click match
(i guess) the assembly, which I was be able to see, when a message box popped
up

Any guess??

This is on vista by the way

ton
[quoted text, click to view]
Re: Step into does not work Ton
9/26/2007 5:58:02 AM
I found the solution. It took me 2 steps:
- I had a pc with XP on it where the same code did work (so step by step
executes one line and jumps to the next one). So I decided to copy all
prefences I could set in Tools -->Options. And with all I meant all, not just
the one corresponding the debug/build secion. No all, with no exceptions.
It did not work.

Then I saw in the Toolsmenu the item Import/Export settings. I thought lets
give this one a try. So I exported alle preferences to a file on my XP pc.
And imported that file on my Vista pc. I closed VS2005. And opened it again.
and guess what:

IT WORKED

I had tears in my eyes when the cursor actually moved one line after just
one 'step over' click, and another line corresponding the second click.
So what did cause these problems. I do not have them anymore. I expect that
there are more settings one can modify, but will be placed in the exported
file so it can be modified in a different way.
Thank you for trying to help me, steve

[quoted text, click to view]
AddThis Social Bookmark Button