Skip to content

Viewing output from CMake #4318

@gojimmypi

Description

@gojimmypi

How to display cmake output in VSCode?

There are important messages, sometimes errors. Without the cmake output, the build fails, only indicating that a binary is missing, with not indicate as to why.

I have these build options:

build_flags =
	${env.build_flags}
	-D BUILD_TYPE=debug	# <-- needed for extra_scripts
	-D DEBUG=1
	-D CORE_DEBUG_LEVEL=5	# 0:NONE, 1:ERROR, 2:WARN, 3:INFO, 4:DEBUG, 5:VERBOSE
    -D CMAKE_VERBOSE_MAKEFILE=ON
    -D CMAKE_TRACE=ON

After deleting the /.pio directory and building, I only see the compiler output, none of the cmake messages.

However, pio from commandline does display cmake output:

set PATH=%PATH%;C:\Users\%USERNAME%\.platformio\penv\Scripts\
pio run -t clean
rm -rf .pio
pio run -v 

Is there an option to display the cmake output messages in VSCode when building with the checkmark "PlatformIO: Build"?

Image

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions