Replies: 1 comment 1 reply
-
That's neat. Is it even necessary to embed the debugger in osm2pgsql? Would it be possible to just require the lua version? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is not a feature request or anything, I just wanted to share a few screenshots illustrating how Lua scripts can be debugged while running osm2pgsql. Debugging in this case means, integrating this Lua debugger, and run flex processing as usual.
Whenever there's an error in the script, or the debugger is triggered explicitly, processing stops and you end up in debug mode.
You can require other Lua files from there, play around with osm2pgsql.* functions, or change any values while processing an object.
This might be interesting for people who struggle a bit with Lua, and want learn a bit more about the details in an interactive way.
generic.lua:
I have uploaded this strictly proof-of-concept demo here, if anyone wants to play with it: https://github.com/mmd-osm/osm2pgsql/tree/debugger
Beta Was this translation helpful? Give feedback.
All reactions