Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugger mades ESP8266 to reboot #7

Open
MarcoH2013 opened this issue Feb 15, 2021 · 0 comments
Open

Debugger mades ESP8266 to reboot #7

MarcoH2013 opened this issue Feb 15, 2021 · 0 comments

Comments

@MarcoH2013
Copy link

Once I include debugger into my project, the ESP8266 will crash when I try to connect via telnet or websocket.
The RemoteDebug library works ok. Telnet and websocket is possible without a crash.

I already analyzed the crash stack without any result showing problems in my code.

  • OS: [Windows]
  • IDE [VSCode - PlatformIO]
  • IDE Version [1.53.2 - 2.6.2]
  • Board [ESP8266]

My code:

#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>

#include "RemoteDebug.h"
#include "RemoteDebugger.h"

RemoteDebug Debug;

void fun() {
  Debug.println("FUN!");
}

void setup() {
    Debug.begin((char *)"debugger"); // Initialize the WiFi server
    Debug.setResetCmdEnabled(true); // Enable the reset command
    Debug.showProfiler(false); // Profiler (Good to measure times, to optimize codes)
    Debug.showColors(true); // Colors

      Debug.initDebugger(debugGetDebuggerEnabled, debugHandleDebugger, debugGetHelpDebugger, debugProcessCmdDebugger); // Set the callbacks
      debugInitDebugger(&Debug); // Init the debugger

      debugAddFunctionVoid("fun", &fun);
}

void loop() {
    Debug.handle();
}

I hope someone can help me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant