Closed caimaoy closed 2 years ago
The convention for shell programs is to use --
to separate between arguments of different commands on the same commandline, I suppose you could try that. If that's not supported by py-spy - then it should be.
py-spy record [OPTIONS] --output <filename> --pid <pid> -- [python_program] <arg1> <arg2> ...
@Jongy is exactly right - you just separate the python program commandline with a --
It can record with
but if
arg1
andarg2
have the args like-g
or--pid
and in another situationpython_program
usevitrulenv
orpyenv
how to solve the problems?I can only record with--pid
without[python_program] <arg1> <arg2>