Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Is NoStepInto Supported in VC7

Is NoStepInto Supported in VC7

Scheduled Pinned Locked Moved C / C++ / MFC
debuggingquestion
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    OBRon
    wrote on last edited by
    #1

    In VC6, you can modify the autoexp.dat file and add a section called [ExecutionControl]. Within that section you can tell the debugger about functions that you don't want it to step into; CString::CString=NoStepInto. Is this supported in VC7? It doesn't seem to be supported the same way as VC6, but perhaps there is another way to get the same result. Thanks Ron Ward

    G 1 Reply Last reply
    0
    • O OBRon

      In VC6, you can modify the autoexp.dat file and add a section called [ExecutionControl]. Within that section you can tell the debugger about functions that you don't want it to step into; CString::CString=NoStepInto. Is this supported in VC7? It doesn't seem to be supported the same way as VC6, but perhaps there is another way to get the same result. Thanks Ron Ward

      G Offline
      G Offline
      geo_m
      wrote on last edited by
      #2

      yes, it is, but it's moved to registry. referring to same maillist: We read the inclusion/exclusion list from the registry at PRODUCT_ROOT\NativeDE\StepOver Each string value in that RegKey should have a decimal number for its name and a value in the following format: RegExp=[No]StepInto Where RegExp is a regular expression per the standard Visual Studio regular expression format, with the following additional escapes: \cid: A C/C++ identifier \funct: A C/C++ function name \scope: A set of class/namespace specifiers for a function (i.e., ATL::CFoo::CBar::) \anything: any string \oper: a C/C++ operator Due to an oversight, the items are evaluated in descending numeric order instead of ascending order: the '20' rule will match before '10'. The first matching rule is used. If no matching rule is found, we step into. (i.e., there is an assumed entry of MAX_INT \anything:=StepInto examples: --------- Don't step into members of CString[AWT], etc.: 1 \scope:CString.*\:\:.*=NoStepInto Don't step into overloaded operators: 10 \scope:operator\oper:=NoStepInto Don't step into ATL:: except for CComBSTR's non-operator members: 20 ATL\:\:CComBSTR::\funct:=StepInto 10 ATL\:\:.*=NoStepInfo Don't step into templated things, unless they're merely templated functions in a non-templated class: 20 \scope:\funct:=StepInto 10 .*[\<\>].*=NoStepInto

      O 1 Reply Last reply
      0
      • G geo_m

        yes, it is, but it's moved to registry. referring to same maillist: We read the inclusion/exclusion list from the registry at PRODUCT_ROOT\NativeDE\StepOver Each string value in that RegKey should have a decimal number for its name and a value in the following format: RegExp=[No]StepInto Where RegExp is a regular expression per the standard Visual Studio regular expression format, with the following additional escapes: \cid: A C/C++ identifier \funct: A C/C++ function name \scope: A set of class/namespace specifiers for a function (i.e., ATL::CFoo::CBar::) \anything: any string \oper: a C/C++ operator Due to an oversight, the items are evaluated in descending numeric order instead of ascending order: the '20' rule will match before '10'. The first matching rule is used. If no matching rule is found, we step into. (i.e., there is an assumed entry of MAX_INT \anything:=StepInto examples: --------- Don't step into members of CString[AWT], etc.: 1 \scope:CString.*\:\:.*=NoStepInto Don't step into overloaded operators: 10 \scope:operator\oper:=NoStepInto Don't step into ATL:: except for CComBSTR's non-operator members: 20 ATL\:\:CComBSTR::\funct:=StepInto 10 ATL\:\:.*=NoStepInfo Don't step into templated things, unless they're merely templated functions in a non-templated class: 20 \scope:\funct:=StepInto 10 .*[\<\>].*=NoStepInto

        O Offline
        O Offline
        OBRon
        wrote on last edited by
        #3

        Thanks much for the information. I'm not having luck getting this to work though. I'm assuming I'm at the wrong key in the registry. Is PRODUCT_ROOT = HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.0? Should this exported key work? Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.0\NativeDE\StepOver] "1"="\\scope:CString.*\\:\\:.*=NoStepInto" Thanks again for all the information though. -Ron Ward

        G 1 Reply Last reply
        0
        • O OBRon

          Thanks much for the information. I'm not having luck getting this to work though. I'm assuming I'm at the wrong key in the registry. Is PRODUCT_ROOT = HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.0? Should this exported key work? Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.0\NativeDE\StepOver] "1"="\\scope:CString.*\\:\\:.*=NoStepInto" Thanks again for all the information though. -Ron Ward

          G Offline
          G Offline
          geo_m
          wrote on last edited by
          #4

          it's user specific, so it is: HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\7.0\NativeDE\StepOver Hope this one will work (didn't tried it yet)

          O 1 Reply Last reply
          0
          • G geo_m

            it's user specific, so it is: HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\7.0\NativeDE\StepOver Hope this one will work (didn't tried it yet)

            O Offline
            O Offline
            OBRon
            wrote on last edited by
            #5

            Worked perfectly. Thanks a ton. -Ron

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups