Added support for remote debugging in the PyQt wrapper app.

master
Pacman Ghost 6 years ago
parent d54da64fa5
commit 9ec225726b
  1. 8
      vasl_templates/main.py

@ -40,8 +40,9 @@ class LoggerProxy:
@click.command()
@click.option( "--template-pack", help="Template pack to auto-load (ZIP file or directory)." )
@click.option( "--remote-debugging", help="Chrome DevTools port number." )
@click.option( "--debug", help="Debug config file." )
def main( template_pack, debug ):
def main( template_pack, remote_debugging, debug ):
"""Main entry point for the application."""
# configure the default template pack
@ -55,6 +56,11 @@ def main( template_pack, debug ):
return 1
snippets.default_template_pack = template_pack
# configure remote debugging
if remote_debugging:
remote_debugging = remote_debugging.replace( "localhost", "127.0.0.1" )
os.environ["QTWEBENGINE_REMOTE_DEBUGGING"] = remote_debugging
# install the debug config file
if debug:
load_debug_config( debug )

Loading…
Cancel
Save