Commit 8abc50a
do not include
`$FILENAME` is unsafe to include in the globals because it modifies ARGV
and raises an error if it's a file that does not exist. This causes two
issues if rdbg used to debug a command with arguments.
* when using rdbg the server will crash when running `info globals`, as
it does not catch the error
* when using a DAP client that requests globals before the debugged
program was able to handle its arguments then the ARGV changes and
the program will not do what's expected$FILENAME in globals1 parent 0b77e82 commit 8abc50a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
0 commit comments