Waiting for debugger как убрать
Перейти к содержимому

Waiting for debugger как убрать

  • автор:

Xiaomi выдает «Waiting for debugger». Что делать?

Отдали xiaomi redmi note 5 на починку (не могли выйти из reboot mode), получили рабочий телефон, но с китайской прошивкой и удаленными файлами. Пытались разблокировать загрузчик, но не получается зайти в mi account, выдает «Waiting for debugger». Что можно сделать?

Голосование за лучший ответ
купить нормальный телефон
Павел ПетрянкинМастер (1032) 4 года назад
слыш сука мы тя щя с братками атпиздим. за сяоми и двор стреляю в упор.
sg dsg Мыслитель (7375) ахах, дико извиняюсь, у меня нет мелочи

Отвязать Mi-аккаунт, а ещё лучше пойти в мастерскую и надавать в бубен, за сброс до завода или прошивке непонятно чем, пусть делают, если деньги получили.
И режим был, вероятно, FastBoot, а не reboot. Просто надо было кнопочку питания сек. 30 подержать и смарт перезагрузился бы.

Android: Release Version и «Waiting for Debugger»

Когда дебажил под своим HTC или на эмульке, то сообщение «Waiting for Debugger» как бы очевидным было. Но вот когда приложение в .apk запилил, то при установке приложения и запуске это же сообщение появлялось, хотя и не должно (:

Вообще, в manifest.xml для отладки кое-что дописывают:

android:debuggable="true"

Не суть. Главное то, что я этих параметров в манифесте не дописывал (: Посему сначала не догнал в чём трабл.

В настройках для отладки надо включать режим отладки. Проблема, как оказалось, в нём. Если просто отключить режим отладки, то всё равно это сообщение вылезает. Так что, как вы думаете, какое решение помогает со 100% вероятностью? Ага, надо просто телефон ребутнуть -_- Там какие-то траблы с глобальным флагом отладки D:

при запуске приложения пишет Waiting for debuging

Не пойму что я сделал, но теперь приложение, которое я разработываю, не могу запустить без отладки. если выполнить опцию run в android studio, то на телефоне появиться сообщение waiting for debugging и можно только закрыть. работает только если запустить в режиме отладки. но почему так? как исправить?

Отслеживать

задан 27 окт 2020 в 0:59

293 1 1 серебряный знак 7 7 бронзовых знаков

вообще насколько я знаю, нужно подключить телефон с отладкой к пк, и тогда студия сможет его распознать нормально, может вы не run нажимаете а debug? добавьте немного больше подробностей

27 окт 2020 в 5:20

@Andrew я run нажимал. потом долгое время не запускал и эта проблема изчезла сама собой.

«Waiting for debugger to attach» showing even when not running in debug mode

I have developed several Android applications and never stumbled upon this. Why wouldn’t I be able to start the application in RUN mode? Is there any other way to install the application on the device, without hitting the run button in Eclipse?

I can post code-snippets from the AndroidManifest or from other parts of the code if necessary, but as I already mentioned I wasn’t getting this kind of weird behavior several days ago.

asked May 13, 2012 at 16:13
10.2k 9 9 gold badges 54 54 silver badges 77 77 bronze badges
May 13, 2012 at 16:29
Restarting the device did the trick for me.
Aug 9, 2015 at 12:00

15 Answers 15

Make sure your java files dont have any break point and Restart the device every thing should be normal.

I was experience the same problems where my application was always being run in debug mode. Restarting the device did the trick for me.

and make sure you are using

right click on project—>>Run As —>> Android Application

answered May 13, 2012 at 16:31
7,538 8 8 gold badges 46 46 silver badges 72 72 bronze badges

Turns out although I did not have any breakpoints in my code, I had some in the Workspace, and I may have accidentally turned on the launch in debug whenever the workspace has breakpoints (see help.eclipse.org/helios/index.jsp?topic=/…). Gladly, after 2 restarts I was able to get it running normally. Thank you all for comments and replies !

May 13, 2012 at 17:25
Yes, restarting the device worked for me. Stupid technology 🙂
Sep 27, 2014 at 15:47

I was getting this error when compiling and building from eclipse. I cleaned the project but no luck. Then I restarted eclipse and still got the error. I then built the project using maven 😐 Then I knew it was time to look towards stackoverflow.

Dec 9, 2014 at 5:42
Worked as said, after Restarting my Device, problem solved. Thanks everyone
Mar 17, 2016 at 12:46
How can this still be an issue, after so many years? I consider it a bug in Android.
Apr 12, 2017 at 8:55

For me the solution was turning off the USB debugging from my device settings, and then turning it on again!

Much quicker than restart the whole device.

answered Mar 9, 2016 at 1:08
11.2k 11 11 gold badges 67 67 silver badges 101 101 bronze badges
Even restarted my phone, nothing happened. This did the trick! Thanks.
Jun 24, 2016 at 6:56

I had the same problem using Android Studio. Restarting my cellphone worked for me!

answered Jan 6, 2015 at 21:56
310 2 2 silver badges 4 4 bronze badges
Thanks, this solution solved this issue for my situation.
Mar 28, 2019 at 11:04

1. Open setting in ur phone.

2. Go to developer options.(About Phone-> Developer Option).

3. Disable the Developer option and again enable the Developer Option.

4. Enable USB debugging and Install via USB.

answered Mar 1, 2017 at 14:41
Sujeet Kumar Sujeet Kumar
1,932 22 22 silver badges 25 25 bronze badges
PIE does not have INSTALL VIA USB
Aug 30, 2019 at 19:08

Run this command and the issue will be resolved

adb shell am clear-debug-app 

answered Mar 5, 2020 at 8:57
HimalayanCoder HimalayanCoder
9,780 6 6 gold badges 61 61 silver badges 61 61 bronze badges

Worked but I had to use -s option because emulator seen as a second device adb devices adb -s shell am clear-debug-app

Dec 15, 2022 at 0:01

Check if the option waiting for debugger is actived.

Settings -> Developer options -> Wait for debugger.

I think this it is new from Jelly Bean.

answered May 28, 2013 at 8:17
2,872 4 4 gold badges 21 21 silver badges 25 25 bronze badges

For me the option «Wait for debugger» was not actived. But actived it, start the apk, force close apk and unactive the option correct the problem for me. Do the same with «USB debugging» option was not working for me (on OS 4.4.2)

Aug 18, 2017 at 9:06

I’m assuming this is in the emulator and not on a device. If it is a device, ignore the rest. :p

It sounds like you saved a snapshot of the emulator as the debugger was connecting.

1) Go to the AVD control panel, click on the emulator that’s affected and hit start
2) when the window pops up, de-select «Launch from snapshot» and leave «Save to Snapshot» selected
3) Start the emulator.
4) Close the emulator
5) On the AVD control panel again start the emulator 6) Check «Launch from snapshot» again

That should fix things up.

EDIT.

Sorry for the wasted space, I read too fast and missed you talking about trying disabling USB Debugging. I have run into the above situation I describe before so I’ll leave this answer posted for those who come along who do have such an issue.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *