Saturday, February 24, 2024

Re: Deobfuscated stack trace message and line-specific stack traces

Sorry, I do see them in  mywebapp-client\target\gwt\deploy\mywebapp\symbolMaps

How do I get them from there, into the war?

On Sunday 25 February 2024 at 10:30:14 am UTC+11 Craig Mitchell wrote:
Hi George,

What I did was:
  1. Run https://github.com/tbroyer/gwt-maven-archetypes to generate the sample app.
  2. Modify module.gwt.xml to have: <set-property name="compiler.stackMode" value="native" />
  3. Run mvn clean package.
Then when I look inside mywebapp-server\target\mywebapp-server-HEAD-SNAPSHOT.war I see the mywebapp folder with all the compiled javascript, but no symbolMaps.

I also tried with:
<set-property name="compiler.stackMode" value="emulated" />
<set-configuration-property name="compiler.emulatedStack.recordLineNumbers" value="true" />
<set-configuration-property name="compiler.emulatedStack.recordFileNames" value="true"/>

Still no symbol maps.

Any ideas on what I'm missing would be great.  Thanks.

On Sunday 25 February 2024 at 12:45:57 am UTC+11 George Paret wrote:
I see the symbolmaps generated in ` target/gwt/deploy/<modulename>/symbolMaps `

I believe it is generated by default.

On Friday, February 23, 2024 at 10:27:12 PM UTC-6 Craig Mitchell wrote:
The symbol maps worked great with the Eclipse GWT plugin compiler.

Now switched to use the Maven compiler (with the https://github.com/tbroyer/gwt-maven-archetypes architecture), I don't see the symbol maps anywhere when doing a mvn clean package.

Do I need to do something extra to get them?

Thanks.

On Saturday 18 May 2019 at 8:48:47 am UTC+10 Craig Mitchell wrote:
Thank you Alexander!  That's what I was missing.

Called:
exception = SerializableThrowable.fromThrowable(exception);

before sending to the server, and now the stack traces show perfectly.  :-)

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/ae4ca692-8890-406a-8b6b-44eaa5412e3cn%40googlegroups.com.

No comments:

Post a Comment