question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Debug original function invoked by spec

See original GitHub issue

Hi,

not sure if this has been answered before, but couldn’t find anything related. I am trying to debug why a test fails and although using npm run karma and opening a second tab with debug as per instructions gives me the ability to add break points to the spec code, the code to be tests is minified and I cannot place a break point there. Debugging the actual test code is only half the story. Am I missing something?

screenshot 2016-07-11 16 21 42

I also clicked on the notification about pretty printing the minified file, which made no difference

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
masimplocommented, Jul 12, 2016

Awesome, just tried it and it works great. Thanks for the quick resolution.

1reaction
lathonezcommented, Jul 12, 2016

I didn’t end up removing the sourcemaps from npm test in the end. I didn’t notice much difference in transpile time and they do give (more) useful traces when things go wrong.

Removing the transform from debug mode has solved the issue for me:

screenshot-20160712102810-1118x618

Read more comments on GitHub >

github_iconTop Results From Across the Web

Running (invoking) or debugging the local version of an AWS ...
Describes how to use the AWS Toolkit for JetBrains to run (invoke) or debug the local version of an AWS Lambda function.
Read more >
Running ruby debug in rspec? - Stack Overflow
spec /models/user_spec.rb require 'spec_helper' require 'ruby-debug' describe User do it "should be valid" do debugger User.new.should be_valid end end.
Read more >
debug: Debug a Function - Rdrr.io
Use debugonce() to enter the debugger only the next time the function is invoked. To debug an S4 method by explicit signature, use...
Read more >
Unable to debug AWS Lambda function locally with Rider #2207
I am using JetBrains Rider to debug a .Net Core AWS Lambda function locally. In 'run' configuration, I could see it executing the...
Read more >
Debug a Function - R
Set, unset or query the debugging flag on a function. The text and condition arguments are the same as those that can be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found