krismorness
April 21st, 2004, 11:14 PM
Basically, NoStepInto is a feature that allows you to ignore stepping into specified functions. Generally common constructors, parameter lookups, and so on.
I've had good luck with this site for getting answers to tough questions. For whatever reason, information about NoStepInto is very hard to find anywhere!
What I've found is .NET moved the values that used to exist in autoexp.dat into registry settings. I've found some examples on how to set it up. But, I cannot figure out how to get it to work in my test case.
I use .NET 7.1 C++. In order to use it you need to create a key at HKLM\Software\Microsoft\VisualStudio\7.1 called NativeDE then create another key inside that one called StepOver. Inside step over, you will create String values with numeric names with the values representing the functions you wish to ignore.
Here is my reg key file that I created:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.1\NativeDE\StepOver]
"1"="\\scope:.*ScriptAction.*\\:\\:getParameter.*=NoStepInto"
NOTE: \\ actually gets parsed into \ inside the registry editor should you save this file as a *.reg and double click it into your registry settings.
Okay, this is a regular expression that means:
*ScriptAction*::getParameter* = NoStepInto
I've tried various combinations to no avail. I've also tried using:
\scope:.*ScriptAction.*\:\:getParameter.*=NoStepInto
\scope:\funct:.*ScriptAction.*\:\:getParameter.*=NoStepIno
ScriptAction\:\:getParameter = NoStepInto
and 20 other combinations. In my project, ScriptAction is just a typical C++ class, but I keep stepping into the function in this pseudo case:
ScriptEngine::doCommand( pAction->getParameter(0)... )
When I F11 into doCommand, I step into ScriptAction::getParameter().
Basically, all examples that I've seen have been about C++ libraries, but none for custom project specific code. I doubt that would be a problem... but I'm thinking there is some special syntax I am missing. Here are a few links I've found that are more useful than not:
http://dabbler.typepad.com/ooze/2003/12/nostepinto_for_.html
http://www.litwindow.com/Knowhow/wxHowto/wxhowto.html#nostepinto
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=eNnF4ELyCHA.1264%40TK2MSFTNGP09
Doesn't look like too many people have figured this out. I'd appreciate any insight! Thanks in advance :)
I've had good luck with this site for getting answers to tough questions. For whatever reason, information about NoStepInto is very hard to find anywhere!
What I've found is .NET moved the values that used to exist in autoexp.dat into registry settings. I've found some examples on how to set it up. But, I cannot figure out how to get it to work in my test case.
I use .NET 7.1 C++. In order to use it you need to create a key at HKLM\Software\Microsoft\VisualStudio\7.1 called NativeDE then create another key inside that one called StepOver. Inside step over, you will create String values with numeric names with the values representing the functions you wish to ignore.
Here is my reg key file that I created:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.1\NativeDE\StepOver]
"1"="\\scope:.*ScriptAction.*\\:\\:getParameter.*=NoStepInto"
NOTE: \\ actually gets parsed into \ inside the registry editor should you save this file as a *.reg and double click it into your registry settings.
Okay, this is a regular expression that means:
*ScriptAction*::getParameter* = NoStepInto
I've tried various combinations to no avail. I've also tried using:
\scope:.*ScriptAction.*\:\:getParameter.*=NoStepInto
\scope:\funct:.*ScriptAction.*\:\:getParameter.*=NoStepIno
ScriptAction\:\:getParameter = NoStepInto
and 20 other combinations. In my project, ScriptAction is just a typical C++ class, but I keep stepping into the function in this pseudo case:
ScriptEngine::doCommand( pAction->getParameter(0)... )
When I F11 into doCommand, I step into ScriptAction::getParameter().
Basically, all examples that I've seen have been about C++ libraries, but none for custom project specific code. I doubt that would be a problem... but I'm thinking there is some special syntax I am missing. Here are a few links I've found that are more useful than not:
http://dabbler.typepad.com/ooze/2003/12/nostepinto_for_.html
http://www.litwindow.com/Knowhow/wxHowto/wxhowto.html#nostepinto
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=eNnF4ELyCHA.1264%40TK2MSFTNGP09
Doesn't look like too many people have figured this out. I'd appreciate any insight! Thanks in advance :)