1

Coming from a traditional javascript development world, i'm stumped by how to debug lightning components. Any javascript error is caught by the salesforce handler in aura and shows up in this dialog, which is devoid of ANY useful information such as stack trace and call graph.

custom salesforce error dialog

Is there a way to disable this so that I can go back to my traditional chrome dev tools where I can use "pause on exception" and have useful error info to debug my lightning components?

1

you can use the debugger statement to stop processing and open up the browser based tools.

getOpps : function(component) { debugger; // the JS debugger will pause here var action = component.get("c.getOppInfos");

you should read this article ..

https://developer.salesforce.com/blogs/developer-relations/2015/03/debugging-lightning-components.html

That message is the lightning frameworks saying it has an error.. Was not made to be a debug output..

| improve this answer | |
0

Just to add to the other answer ,another helpful tool to debug is chrome extension

It comes with perfomance logs ,Event logging ,Component Tree ,Transactions Tab, Actions Tab and Storage Tab .

You can read more here

You can install from chrome store

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.