ipython showing gibberish when debugging Django with Netbeans -


i'm using netbeans coding django. when insert:

import ipdb; ipdb.set_trace() 

flow execution gets stopped shows gibberish, such as:

[1;32m/path/to/file/models.py[0m(344)[0;36macceptbid[1;34m()[0m [1;32m    343 [1;33m        [1;32mimport[0m [1;37mipdb[0m[1;33m;[0m [1;37mipdb[0m[1;33m.[0m[1;37mset_trace[0m[1;33m([0m[1;33m)[0m[1;33m[0m[0m [0m[1;32m--> 344 [1;33m        [1;32mreturn[0m [1;37mself[0m[1;33m.[0m[1;37msenderid[0m[1;33m([0m[1;33m)[0m [1;33m==[0m [1;37muser_obj[0m[1;33m.[0m[1;37mid[0m[1;33m[0m[0m [0m[1;32m    345 [1;33m[1;33m[0m[0m [0m 

i can use next, skip , pdb. can not see i'm in code, forces me use pdb instead of ipdb.

these ansi escape codes, used text colours in ipdb's output. reason, terminal you're debugging in not accepting codes , printing them text. may able find setting in netbeans either change terminal reporting as, or accepts.


Comments

Popular posts from this blog

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - Updating recent updates - Problem in procedure - Any other approach? -