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.

'Ctrl + C' not working for Mac, but works for Linux.

See original GitHub issue

Expected Behavior

Bug: ‘Ctrl+C’ stops the doctor, and doesn’t even reach to the analyzing part.

Current Behavior

I am trying to run clinic against a script, which needs to be run on background calling a polling function to check if there was an event triggered from the front end. Once the event has been sent from the front end, this polling function takes care of the event. Once it’s done. I stop by using Ctrl + C, where the Analyzing bar doesn’t appear.

Environment

  • Clinic.js version: “4.0.3”,

  • Node.js version: 10.15.3, npm - 6.4.1

  • Browser name and version: Chrome Version 73.0.3683.103

  • Operating system and version: Your OS is OS X 10.14.1 [Mac OS Mojave]

Additional Info

The same command am using:

clinic doctor --on-port 'autocannon http://localhost:$PORT' -- node tasks/cathy.js works for 2 of my friends Linux PC, but not on my MAC. (Going to confirm with another MAC friend soon. Will update it here.)

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:9
  • Comments:17 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
bijeshpcommented, Nov 10, 2021

Look for the SIGINT( catches ctrl+c event) event handlers in your code or the dependencies.

if you have one, exit the process in the handling. This worked for me(OsX Catalina/ clinic@9.0.0)

process.on('SIGINT', function() {
// do your handling 
// exit the process
    process.exit();
});
0reactions
Jakeiicommented, Mar 13, 2022

I’m having this issue only for flame. doctor and bubbleprof work just fine

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ctrl-C and Ctrl-Z not working in terminal - Super User
If you are using a MAC keyboard Command + dot/period should be equivalent to Ctrl + C for break. For Ctrl + Z...
Read more >
Ctrl-C doesn't break in terminal on Mac - Stack Overflow
Open a terminal application in the integrated terminal · Press Ctrl-C with the focus inside the terminal, while the application is running ·...
Read more >
'Ctrl + C' not working for Mac, but works for Linux. #164 - GitHub
I think problem lies with the handling of the Ctrl+C on MAC. Because, as I said earlier, without Ctrl + C, if it...
Read more >
What to do when Ctrl-C won't kill running job? - Ask Ubuntu
Ctrl +Z works with things like less, man, vi and so on. You can then kill them by doing a ps to see...
Read more >
How to use the Ctrl-C key - Apple Support Communities
I am new to Mac and have a question about the Ctrl-C key combination used so often in Windows and Linux. I login...
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