I use the Web Developer plugin for Firefox for high-level notifications
of problems, or for deeper debugging, Chromium's javascript "console"
can be useful (of course, finding the section in your python code that
generated the offending section of javascript can be fun ... ah the
joys of forensic code inspection ... ;)

Steve

On 03/13/2014 10:37 AM, Hauke Duden wrote:
> We are using Python tools (also PyCharm, by the way). But the problem is 
> that this only allows us to debug the part of the software that is pure 
> Python. But as soon as third party Javascript libraries are involved 
> (jQuery UI, etc) then we cannot debug in a pure Python environment 
> anymore. This kind of code obviously requires a proper Javascript and 
> DOM environment to run these third party JS libraries.
> 
> That is why I asked wether source maps are supported. If they are then 
> we could debug the UI stuff in Google Chrome or Firefox. That would be 
> fine for our purposes. But we really need *some* way to do step-by-step 
> debugging (also for our UI stuff).
> 
> Hauke
> 
> On Thursday, March 13, 2014 3:26:28 PM UTC+1, Lex Berezhny wrote:
> 
>     I develop, debug and test the app in python using Python tools
>     (PyCharm in my case).
> 
>     If you are not using python tools then why the heck are you using pyjs?
> 
>     There are much better solutions if you prefer debugging in browser
>     such as CoffeeScript and many other "js preprocessors".
> 
>     - lex
> 
>     On Mar 13, 2014 10:21 AM, "Adrien" <soul...@mailoo.org
>     <javascript:>> wrote:
> 
>         Hi,
> 
>         On 03/13/2014 10:04 AM, Hauke Duden wrote:
> 
>             How are people debugging pyjs apps right now?
> 
> 
>         I debug with the Firefox web console only, adding some "print"
>         statements here and there until I manage to find the bug. This
>         may sound ridiculous but Venkman, the Javascript (step by step)
>         debugger which is recommended for development with Firefox [1],
>         was running so slow that it was not usable at all.
> 
>         I don't know what other way you have to debug pyjamas
>         applications... so for myself, that's it: Python code live
>         analyser (Pylint) and Firefox web console.
> 
>         I would be interested as well to know about other's experiences.
> 
>         [1] http://pyj.be/#Developing
> 
>         Cheers,
>         Adrien

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Pyjs.org Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyjs-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to