DevTools in release mode #3059
|
How to enable dev tools (inspect) in the final built (released) app? |
Replies: 6 comments 8 replies
|
This got answered on discord. For others who are searching for this here is the answer:
[profile.release.package.wry]
debug = true
debug-assertions = trueEdit: As of recent versions it is possible to add the |
|
Just tried this, using the |
|
I added the following to [profile.release.package.wry]
debug = true
debug-assertions = true |
|
hi huuuuuuuh seems like the feature has been removed in v2? Is it possible to add the feature somehow ? |
|
For those trying with npm run tauri build -- --debug |
|
The correct, canonical way to do this is to add the [dependencies]
tauri = { version = "2", features = ["devtools"] }
|
This got answered on discord. For others who are searching for this here is the answer:
There are two methods:
tauri build --debug). The binary will end up intarget/debug! This of course is not actually in release mode, but the bundler etc. will do the same as they would in the actual release mode. The only difference is how rust compiles the binaries.wryin debug mode. The binary will end up intarget/release! For this you need to add the following to yourCargo.tomlfile. Edit: This answer was posted for 1.0.0-beta versions, for rc and beyond see the "Edit" section at the end of this comment.