sciter-sdk / rust-sciter

Rust bindings for Sciter
https://sciter.com
MIT License
805 stars 75 forks source link

Enable debug mode for example "minimal" #52

Closed baijifeilong closed 4 years ago

baijifeilong commented 5 years ago

Debug mode is required to connect to the inspector.

pravic commented 5 years ago

It is enabled by default. Isn't it?

https://github.com/sciter-sdk/rust-sciter/blob/master/src/host.rs#L189..L190

7sDream commented 5 years ago

@pravic

But it seems isn't enabled when I try the minimal example.

I need add the line in this PR to use the inspector.

My env:


With this line: default

Without it: default

pravic commented 5 years ago

Interesting. I need to check it again then.

pravic commented 4 years ago

A reminder for me.

pravic commented 4 years ago

Right, global debug mode doesn't work on OSX (https://sciter.com/forums/topic/global-sciter_set_debug_mode-does-not-work-in-osx/).

We'll see about the correct way to do it.

pravic commented 4 years ago

Another reminder to look on window creation under OSX.

Well, I couldn't find anything incorrect there.

pravic commented 4 years ago

Apparently, it was fixed in 4.4.2.7.

Just checked on a recent SDK, works well.