In some of my code breakpoint is not hitting.
For eg in below image line no 2191 and 2192 breakpoint is hitting but from 2193 to 2204 breakpoint is not hitting
Related
I have a large number of files that I run through Karma and Jasmine for testing†. In the middle of the process I get an uncaught error which halts the project. This means that I cannot easily determine which file is causing the fatal error. Is there a way to print out the name of a file as it is being tested or get similar information that I can analyze?
†More specifically, I am running an Angular project using Angular CLI, which employs Karma and Jasmine.
Edit:
I have been asked for screenshots and code, but there's not much to show. When I run karma I get this response:
19 09 2017 00:04:18.279:INFO [karma]: Karma v1.7.0 server started at http://0.0.0.0:9876/
19 09 2017 00:04:18.281:INFO [launcher]: Launching browser Chrome with unlimited concurrency
19 09 2017 00:04:18.285:INFO [launcher]: Starting browser Chrome
19 09 2017 00:04:42.723:INFO [Chrome 61.0.3163 (Mac OS X 10.12.6)]: Connected on socket Ml1MJK4zgJuXwLyxAAAA with id 34080921
................................................................................
................................................................................
................................................................................
.....................................................Chrome 61.0.3163 (Mac OS X 10.12.6) ERROR
Uncaught Error: No component factory found for FooComponent. Did you add it to #NgModule.entryComponents?
at http://localhost:9876/_karma_webpack_/polyfills.bundle.js:8310
Chrome 61.0.3163 (Mac OS X 10.12.6) ERROR
Uncaught Error: No component factory found for FooComponent. Did you add it to #NgModule.entryComponents?
at http://localhost:9876/_karma_webpack_/polyfills.bundle.js:8310
Chrome 61.0.3163 (Mac OS X 10.12.6): Executed 293 of 739 (skipped 44) ERROR (10.515 secs / 1.461 secs)
I am running 739 unit tests and the process halts after 293. I cannot find the file causing the FooComponent error (it's something subtle and cannot be identified with a keyword search). This is why I need to know the name of the file, or the test, or the something that is causing the error.
You could use a custom Karma reporter to view more details on which tests are failing etc.
One option is karma-spec-reporter.
Installation and usage is simple (copied from the github README):
npm install karma-spec-reporter --save-dev
Then add 'spec' to reporters in karma.conf.js, e.g.
reporters: ['spec']
There are also other options for Karma reporters.
Karma-mocha-reporter is one option.
If you're after a bit of a laugh, you could also look at the karma-nyan-reporter for a bit of nyan-cat relief. Perhaps surprisingly, it also seems to give some useful error logging as well.
I installed VS2017 Enterprise on my Windows 10 machine. I created a test core project and hit F5. And I'am keeping getting this error.
The program '[11084] dotnet.exe: Program Trace' has exited with code 0 (0x0).
code:-32000
message:No script for id: 32
The program '[11084] dotnet.exe' has exited with code -2147450749 (0x80008083).
The program '[5892] chrome.exe: WebKit' has exited with code -1 (0xffffffff).
The program '[10272] iisexpress.exe: Program Trace' has exited with code 0 (0x0).
The program '[10272] iisexpress.exe' has exited with code 0 (0x0).
So I can't debug, and can not running. I would be grateful if you could give me any sugetion
Thanks
Are you running Visual Studio as an administrator?
I'm trying to Download attachments from Lotus notes, but JVM Crashes with this error:
EXCEPTION_ACCESS_VIOLATION (0xc0000005)
Problematic frame:
C [NLNVP.DLL]
Crash is cause by this method from Domino library:
extractFile(path);
once it hits this line, JVM goes down.
Any idea what's going on?
Remove line NLNVP.DLL from notes.ini and try to execute it will not crash the JVM
you (developer) and end user have same symantic version then JVM will not crash.
I'm trying to open the following URL in iPad 3 Safari browser.
http://www.pearsonschool.com/index.cfm?locator=PS1yJe&PMDbProgramId=110081&sampleId=11241
And doing the following steps:
Click on "Explore the innovative technology of Teacher Place for yourself"
On the top left, click on "Dash" -> Teacher Content
Then select CMP3 Grade 7
Click on Accentuate the Negative
Then click on "3" (Multiplying and Dividing..)
Select "Problem 3.1"
Click "Launch" button
Here we have 3 options to expand viz Launch Video, Connecting to Prior or Knowledge and Presenting the Challenge.
Expand all the 3 items by clicking ">" button on right of these options.
Scroll to the bottom
It crashes.
Its working fine on iOS 5 Safari. But its crashing on iOS 6.0.1 Safari.
The following is the message that I noted during crash:
??Jan 31 07:21:13 Happiestminds kernel[0] <Debug>: 008192.238887 wlan.A[568] AppleBCMWLANNetManager::checkRealTimeTraffic(): now 8192.238881625 num entries 4
??Jan 31 07:22:07 Happiestminds ReportCrash[355] <Notice>: Formulating crash report for process MobileSafari[230]
??Jan 31 07:22:07 Happiestminds ReportCrash[355] <Error>: libMobileGestalt copySystemVersionDictionaryValue: Could not lookup ReleaseType from system version dictionary
??Jan 31 07:22:07 Happiestminds com.apple.launchd[1] (UIKitApplication:com.apple.mobilesafari[0x61fb][230]) <Warning>: (UIKitApplication:com.apple.mobilesafari[0x61fb]) Job appears to have crashed: Segmentation fault: 11
??Jan 31 07:22:07 Happiestminds backboardd[51] <Warning>: Application 'UIKitApplication:com.apple.mobilesafari[0x61fb]' exited abnormally with signal 11: Segmentation fault: 11
??Jan 31 07:22:07 Happiestminds ReportCrash[355] <Notice>: Saved crashreport to /var/mobile/Library/Logs/CrashReporter/MobileSafari_2013-01-31-072206_Happiestminds.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0
I couldn't understand why is it crashing in latest safari.... When googled, i found that some URL's saying its problem related to Redirections, some say about bookmarking and some say about memory management. But I couldn't find the exact issue.
Can some one help me in identifying the exact issue please?
You can try to debug the javascript using chrome on mac, add console.log to your code and follow this tutorial:
http://devcoma.blogspot.it/2014/03/how-to-investigate-ios-safari-crashes.html
I've used a proxy installed on my mac in order to debug and trace from ios safari to the chrome dev tools.
I found that on my web app safari crashed when using iframes, css transitions, css overflow property and, the jQuery ready event, not all at the same time, obviously.
As and when there's updates in the browsers, we have to change the javascript etc respectively in the code as well.
I built a Mac OS X application which is configured to strip the debug info for Release and create the dSYM files.
(Project is configured as described here: http://bit.ly/tJEQml a cached version of http:/developer.apple.com/tools/xcode/symbolizingcrashdumps.html which does exist anymore)
As expected the generated crash reports for my app don't show line information for the stack trace of my apps internal calls.
When analyzing a crash report I just can't get GDB or atos to give me line information for the stack-trace.
Crash report excerpt:
0 CoreFoundation 0x00007fff920f7286 __exceptionPreprocess + 198
1 libobjc.A.dylib 0x00007fff91f74d5e objc_exception_throw + 43
2 CoreFoundation 0x00007fff920f70ba +[NSException raise:format:arguments:] + 106
3 CoreFoundation 0x00007fff920f7044 +[NSException raise:format:] + 116
4 CoreFoundation 0x00007fff920b429b -[__NSCFDictionary setObject:forKey:] + 219
5 AppName 0x00000001015e9c61 AppName + 85089
I tried on GDB by doing the following:
called gdb -arch x86_64
loaded the app using the file command (tried both the AppName.app and Content/MacOS/AppName)
GDB prompts that the symbols where loaded (even tried loading the dSYM with file)
called info line * 0x00000001015e9c61
GDB responds with No line number information available for address 0x1015e9c61
I tried with atos by doing the following:
called atos -arch x86_64 -o AppName.app (also tried to the binary directly and to the dSYM's DWARF file)
typed 0x00000001015e9c61 and hit enter
atos simply repeats 0x00000001015e9c61
What could be wrong?
The symbols seem to load properly (at leasts that's what gdb reports) and I'm certain the crash, dSYM and App bundle all match.
I still haven't figured out how to make the manual symbolizing work but I found a nice script which will do it automatically.
The script can be found at: https://github.com/nikyoudale/symbolicatecrash-mac
I will read through the script's code to figure out what it's doing and answer my own question.