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
--
--- 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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to pyjs-users+...@googlegroups.com.
Just develop the components separately.
Or if you really need to debug (during integration testing) than you can just debug the generated code. It's not that complicated, if you look through the generated code a few times it will start to make sense.
Source maps can create their own issues. It's better to look at the actual code being executed instead of source maps.
But my advice: don't write the code that calls jQuery in Python. It'll be a pain in many more ways than just debugging.
Either go full python or if you're using js libs than use them from js. You can communicate between the python and js world using a DOM element. This will let you unit test each side of the components and let you debug natively.
- lex
On Thursday, March 13, 2014 08:08:58 AM Hauke Duden wrote:
> Well, I guess that means that source maps are not supported by pyjs?
>
> I know that they are not perfect, but they don't need to be. If a
> complicated issue comes up where we need to check out the JS code then we
> can still do that. But we want to be able to debug in the source language
> in the normal cases.
>
> The whole idea behind using pyjs is to use a language that makes it easy to
> write high quality and above all READABLE code in a language without
> obscure quirks like weird scoping or magical syntax or the like (which
> means Javascript and Coffeescript and most other JS compilers are out). But
> we still want to take advantage of all the great existing JS libraries.
>
> With sourcemap support I think pyjs would be a great contender - especially
> since our server side code is also written in Python. But without source
> maps (or another way to debug integrated pyjs and js code) I think we will
> have to look elsewhere.
Give Dart a good look. Don't expect it to work well with IE < 9, or other really old browsers. It has essentially the same quick development turnaround as pyjs with the native client. Aside from the semicolons and curly braces, it feels a lot more like python than javascript. The recent release of Angular.dart makes it really worth investigating.
- Jim Washington
Well, I guess that means that source maps are not supported by pyjs?
Give Dart a good look. Don't expect it to work well with IE < 9, or other really old browsers. It has essentially the same quick development turnaround as pyjs with the native client. Aside from the semicolons and curly braces, it feels a lot more like python than javascript. The recent release of Angular.dart makes it really worth investigating.