diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-03-08 15:29:58 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-03-08 15:29:58 +0300 |
commit | 9ce5be370632449b0fe617348298b0eed3ed1b60 (patch) | |
tree | 77d26b08fa36dad7f5b0dd9f33a3536247644a97 /source/creator | |
parent | 1138214a8cc585b9c384cc99b8f8017edbc737ea (diff) |
workaround for [#21486] Python debuger pdb don't work
setting sys.stdin to None is done so python wont lock blender when it tries to read from the input. - help() from the console does this.
Running blender with -d keeps the stdin so python debugging can work. add info in the help message about this.
eventually it might be best to replace sys.stdin with our own object which interacts with the console but this is not trivial.
Diffstat (limited to 'source/creator')
-rw-r--r-- | source/creator/creator.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c index 697af093688..fd669c36cd4 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -230,6 +230,9 @@ static int print_help(int argc, char **argv, void *data) printf ("\nMisc options:\n"); printf (" -d\t\tTurn debugging on\n"); + printf (" \t\t * prints every operator call and their arguments\n"); + printf (" \t\t * disables mouse grab (to interact with a debugger in some cases)\n"); + printf (" \t\t * keeps python sys.stdin rather then setting it to None\n"); printf (" -nojoystick\tDisable joystick support\n"); printf (" -noglsl\tDisable GLSL shading\n"); printf (" -noaudio\tForce sound system to None\n"); |