Skip to content

How can I "trace()" to ESP32 default serial console? #1077

Answered by phoddie
linfan68 asked this question in Q&A
Discussion options

You must be logged in to vote

There are three kinds of builds:

  • debug – for JavaScript debugging with xsbug
  • release – for production (serial console disabled, watch dog timer enabled, etc)
  • instrumented – a release build with some differences to help with debugging. For example, serial console is enabled, so trace statements are output to the serial console.

To run an instrumented "helloworld", replace "-d" with "-i" on the mcconfig command line.

cd $MODDABLE/examples/helloworld
mcconfig -i -m -p esp32

After installing, the IDF serial monitor is launched, so you see the usual boot sequence followed by the Moddable SDK instrumentation initialization message, and then the usual trace from helloworld.

ets Jun  8 2016 00…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@linfan68
Comment options

@phoddie
Comment options

Answer selected by linfan68
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants