Shift-F8 Step over the line by running the procedure on the current line without going into it and stepping through each lineThanks
you could is set a breakpoint on the next line of code and then press F5.I've constantly been debugging lot of code and not interested in stepping thru all the sub functions that are being called by the function I'm looking at, would either have to hold down the shift key all the time while pressing f8 key or perhaps find a way to have windows know that a certain key should be considered same as pressing shift+f8, that could be only while debugging or would not mind if this will be the behavior at all times...
You might however be able to set up a Windows shortcut for what you want to doWhere do you explain this in the article?
If you want take it even further, create keyboard shortcuts for quick access to Windows 7 settings. Step 1: Right-click on one of the shortcut icons you just created and select "Properties." Step 2: In the "Shortcut key:" field, type a key combination to use as a keyboard shortcut.Thanks,
i = UnZip(sDownloadFolder & sLastFile, sDestinationFolder, False)
If i = 0 Then
sDestinationFolder = "C:\Application\"
If Dir(sDestinationFolder & NewestFile(sDestinationFolder, "*." & sExt)) <> "" Then
If Dir(sDestinationFolder & "Tables." & sExt) <> "" Then
Kill sDestinationFolder & "Tables." & sExt
End If
Name sDestinationFolder & NewestFile(sDestinationFolder, "*." & sExt) As sDestinationFolder & "Tables." & sExt
End If
End If
I want step into all those lines, however Unzip and NewestFile which are other functions I dont step into, and prefer not having to use two keys all the time (Shift+F8).Sub test()
#If Testing Then
' Don't do anything
#Else
SomeSub
#End If
End Sub
Sub SomeSub()
MsgBox "hello"
End Sub
Sub test()
#If Not Testing Then
SomeSub
#End If
End Sub
I've attached a small sample project.then the following code will bypass the calling of SomeSub.Just to clarify, I'm not looking to bypass the executing those sub functions, just to bypass stepping thru the code line by line, exactly what shift+f8 does.
Step Over is similar to Step Into except that as its name implies it will step over or skip the current line. Note that it doesn't skip the execution of the line, only the stepping through. In other words if the current line is a call to a long Sub that you don't really care about, stepping over will execute the call and then pause at the line following the call.Thanks,
Have you tried setting breakpoints and using F5?Yes, I use that occasionally when only want to start debugging from a certain point.
For example in the code you posted you could put breakpoints on line 1 and line 3.Well normally I'm looking at much larger code, would not be practical to look thru the entire code to find where there is a function called and set there a breakpoint...
click the Debug menu's 'Step Out' button.As mentioned, this is what I'm currently doing...
If it's Shit+F8 and you assign it to, say, F9, how would that prevent you from wandering into the subs you don't want to step through?No, I just need something to simulate the exact same behavior as shift+f8, F9 is fine.
why not put a breakpoint on the function itself?Not getting it.
So you want to F8, F8, F8,...F8 until you get to a certain sub and then press F9 and have it step over, right?Not either, I just want to use f9 all the time...no switching keys and no using two keys, very simple...
Right-click the desktop shortcut of the application, then click Properties > Shortcuts.Thanks,
Not either, I just want to use f9 all the time...no switching keys and no using two keysThat's not possible.
That's not possible.So you're saying its not possible to have F9 behave like Shift+F8?
Step 2: Start the Keyboard wizard, and change the assignmentsThis looks like something we are trying to accomplish.
Open the Keyboard item in Control Panel. ...
On the Key Settings tab, select the key that you want to change.
To change the command or the program assignment, click Configure. ...
Select the appropriate options, and then follow the instructions
Caps LockThat would have been a good idea, just a pity it does unfortunately not work-:(
might
apply to F8 too (making it Shift-F8)
F9::send +F8
How can I change it to refer to shift+f8?F9::send {shift}+{F8}
Thanks,