Debugging step into F8 not working

TxStrob

Registered User.
Local time
Today, 10:03
Joined
Sep 23, 2019
Messages
44
When I place my cursor into a procedure, I would like to debug and press F8. The Step Into does nothing, why is this?
 
Hi. F8 only works to step into a suspended process. Simply clicking into the procedure doesn't start it up. Did you place a Breakpoint in your code?
 
Actually, clicking into a procedure then F8 does start code execution. But only in a general module.

Debug>StepInto does same thing.
 
Actually, clicking into a procedure then F8 does start code execution. But only in a general module.

Debug>StepInto does same thing.
I stand corrected. However, I couldn't tell the difference when it works and when it doesn't. What are the specifics?
 
The procedure declaration line will highlight yellow.

If you want to provide db for analysis, follow instructions at bottom of my post.
 
The procedure declaration line will highlight yellow.

Right. It does that for some but not for others, and it doesn't matter whether if it's a Sub or a Function. So, would you know why? I'm trying to figure out the difference. When it works, I get the highlight, but when it doesn't work, I just get the beep.
 
It works in General module only. It works for me regardless if Public or Private.

If procedure has arguments, it won't work.
 
It works in General module only. It works for me regardless if Public or Private.

If procedure has arguments, it won't work.
Ah, that's one specifics I didn't know before. Thanks!
 
TxStrob, you got a suggestion but not an explanation.

"Step Into" won't work unless you took all the prior steps to get you to the point where the next step is into the procedure. You can speed up the process of getting there by setting a breakpoint on the previous executable instruction, or on the procedure call itself. From that point, "Step Into" has a chance of working.

If you set the breakpoint and it still doesn't occur, there is a chance that your code logic just doesn't get there i.e. program flow avoids that point. Remember that the function keys are "Step Into" not "Jump Into" so take that into account when debugging.

June7 points out that you can force the effect of a Jump Into - but remember that if your code was busy setting up a proper context for what you were trying to do, that Jump Into trick might not work anyway.
 
When I place my cursor into a procedure, I would like to debug and press F8. The Step Into does nothing, why is this?
Check if the option "Use Access Special Keys" is enabled in the settings for the current database. Otherwise [F8] will not work.
 

Users who are viewing this thread

Back
Top Bottom