Leonardo is unable to detect the serial port

My Leonardo seems to have an issue. The ON and L lights are constantly on, and it doesn't detect any serial ports. I've tried switching computers and cables, but nothing works. How can I fix this?

How do you know that?

What serial ports are you expecting the Leonardo to recognize and how will you know when it has done it?

the computer cannot recognize it and the IDE cannot connect to it.
It was working fine at first, but suddenly it started to work like this

That's a different problem. You asked why the Leonardo was unable to recognise serial ports, not why the computer cannot recognise serial ports. If your problem is that the computer cannot recognise serial ports, why did you ask why the Leonardo is unable to recognise serial ports?

Press and release the reset button. After that

  1. Does the L-LED fade in and out for approx. 8 seconds?
  2. Does your computer recognise the board as an Arduino Leonardo bootloader?

I'm very sorry, I wrote it wrong, there may be some problems with this translation.
How should I solve my current situation

Do not cross post; it wastes peoples time. Your topics have been merged.

No, I kept pressing reset, but nothing happened, and the L light remained on.

OK, thanks

Are you in a hurry?

Indeed, I am a newbie and don't understand why this happened suddenly.

If your Leonardo does not react on the press and release of the reset button either

  1. The boot loader is damaged/missing. Your can try to burn the boot loader using another Arduino (instructions on the web) or using a programmer.
  2. Your board has permanent physical damage. What where you working on when it started to fail?

Thanks, I'll try it.
I didn't do anything when the problem occurred, and only discovered the problem when I found that I couldn't write the program

Try mindfulness next time something bad happen, I recommend it. In this case "It's only a thing. Things break sooner or later."

About this issue, @sterretje is spot on.

I think you missed the one I answered this morning.

Thay was the one that was supposed to be merged, not sure what went wrong. Can't do it now, will look tomorrow if nobody else does the merge.

Hi @Grumpy_Mike. I searched, but was not able to find any post other than this one that you made in response to @cccc79928's support request. I even looked in the deleted posts as well as the normal posts in case it might have been lost accidentally when we cleaned up a cross-post.

If you can provide a link to the post you are referring to, I'll be happy to take another look. If you can't find it, you can check to see if it is in your post drafts (only you can see your drafts, so I didn't check there):

https://forum.arduino.cc/my/activity/drafts

Thanks, I can't find anything either from my activity or drafts.

It was the picture used that I have the very strong memory of. Anyway not to worry.
Thanks again for pursuing this.