>In VFP6, there is a new "Set Breakpoint" command in the right-click menu of code windows. It is a great improvement. However it doesn't work when you try to set a breakpoint at a line of a function/procdure in a prg file. Anybody can suggest a quick and easy alternatives to set such a breakpoint without figuring out an expression or modifying the source code?
>
>Ben
On the line containing the PROCEDURE/FUNCTION command it indeed doesn't work.
But I don't see any any reason why you can't set or don't set it at the next following line.??
Or else you can set a breakpoint in the debugger itself.
Open the breakpoints dialog, type the name of your procedure/function and press add.
The program halts whenever it enters your proc./func. Debugger must be open before you enter the proc./func. otherwise your app want halt.