Set up debugging of the extended version of the hugo source

I’ve been setting upp vscode/delve to debug the hugo source. It’s working as long as I’m not using hugo pipes. When using pipes I get the following error:

ERROR 2019/04/25 16:33:19 error: failed to transform resource: TOCSS: failed to transform "sass/main.scss" (text/x-scss): this feature is not available in your current Hugo version, see https://goo.gl/YMrWcn for more information

I’ve successfully built hugoextended from source using HUGO_BUILD_TAGS=extended mage install. But when debugging from vscode mage isn’t used so it has to be done in another way.

Anyone know how to do this?

Problem solved by adding "buildFlags": "-tags=extended" to launch.json.

1 Like