Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
anki-code authored Mar 24, 2023
1 parent 417e224 commit b6e2758
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1196,17 +1196,18 @@ Don't forget [about API security](https://flask-httpauth.readthedocs.io/en/lates
If you want to have a breakpoint to debug a script, use the standard Python [pdb](https://docs.python.org/3/library/pdb.html):
```xsh
xpip install xontrib-macro
from xontrib.macro.data import Write
with! Write('/tmp/run.xsh', chmod=0o700, replace=True, makedir=True):
echo hello
$VAR = 1
var = 2
echo @("""
echo hello
$VAR = 1
var = 2
import pdb
pdb.set_trace() # interactive debug
import pdb
pdb.set_trace() # interactive debug
echo finish
echo finish
""") > /tmp/run.xsh
xonsh /tmp/run.xsh
# hello
Expand Down

0 comments on commit b6e2758

Please sign in to comment.