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

Enable debug option in Assembler groovy script #556

Open
lucianap1111 opened this issue Nov 5, 2024 · 1 comment
Open

Enable debug option in Assembler groovy script #556

lucianap1111 opened this issue Nov 5, 2024 · 1 comment

Comments

@lucianap1111
Copy link

For complex Assembler programs, debugging offers insights into each step of the build and link process, helping developers understand how code transformations are applied, what dependencies are resolved, and any potential configuration issues in DBB.

With debug logs, developers can more quickly pinpoint issues without needing to comb through extensive logs or guess based on error messages alone. This can significantly speed up the debugging process, especially with low-level language issues that may be hard to spot.

@dennis-behm
Copy link
Member

@lucianap1111

zAppBuild already contains the capability to create the necessary EQALANGX file on Assembler processing, based on the debug flag.

// create sidefile
if (rc <= maxRC && props.debug) {
rc = debugSideFile.execute()
maxRC = props.getFileProperty('assembler_maxIDILANGX_RC', buildFile).toInteger()
if (rc > maxRC) {
String errorMsg = "*! The preparation step of the sidefile EQALANX return code ($rc) for $buildFile exceeded the maximum return code allowed ($maxRC)"
println(errorMsg)
props.error = "true"
buildUtils.updateBuildResult(errorMsg:errorMsg,logs:["${member}.log":logFile])
}
}

It got released with zAppBuild 3.2.0

Can you elaborate what is missing here?

@dennis-behm dennis-behm changed the title DBB - To enable debug option in Assembler groovy script Enable debug option in Assembler groovy script Nov 6, 2024
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

2 participants