Revision 72
updated icons to new
Added open program option to toolbar (makes a bit more sense)
Display breakpoints on loading source file
cDebuggerEngine.pkg | ||
---|---|---|
495 | 495 |
Function_Return iPos |
496 | 496 |
End_Function |
497 | 497 |
|
498 |
|
|
499 |
// |
|
500 |
// Checks the breakpoint array to see if it has any breakpoints |
|
501 |
// for the filename passed and returns them as line numbers if they |
|
502 |
// do. |
|
503 |
// |
|
504 |
Function ListBreakPointsForFile String sFile Returns UInteger[] |
|
505 |
Integer iPos |
|
506 |
Integer iBreak |
|
507 |
Integer iCount |
|
508 |
UInteger iLine |
|
509 |
UInteger[] Lines |
|
510 |
tBreakPoints[] BP |
|
511 |
|
|
512 |
Move -1 To iPos |
|
513 |
Move (ResizeArray(Lines,0)) To Lines |
|
514 |
Get pBreakPoints To BP |
|
515 |
Move (Lowercase(sFile)) To sFile |
|
516 |
Move (SizeOfArray(BP)) To iCount |
|
517 |
For iBreak from 0 To (iCount-1) |
|
518 |
If (lowercase(BP[iBreak].sFileName)=sFile and BP[iBreak].bEnabled=True) Begin |
|
519 |
Move BP[iBreak].iLine to Lines[SizeOfArray(Lines)] |
|
520 |
End |
|
521 |
Loop |
|
522 |
Function_Return Lines |
|
523 |
End_Function |
|
498 | 524 |
|
499 | 525 |
Procedure AddBreakPointToArray String sFile UInteger iLine |
500 | 526 |
Integer iCount |
Also available in: Unified diff