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

Add wrapper for libssh2_trace functions #7

Open
volks73 opened this issue Oct 4, 2021 · 0 comments
Open

Add wrapper for libssh2_trace functions #7

volks73 opened this issue Oct 4, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@volks73
Copy link
Member

volks73 commented Oct 4, 2021

The libssh2.org library provides the libssh2_trace() function to aid in debugging. This function is currently not available in this library, which makes it hard to debug and troubleshoot. A LabVIEW-friendly wrapper function should be added.

The default is to write debugging statements to STDERR. This can cause a problem with LabVIEW because there is no STDERR. In other words, I am not sure if the debugging statements will appear if tracing is turned on. Will a CMD console display automatically? Will the debugging statements only appear if LabVIEW is started from the command line (CMD)?

There is the libssh2_trace_sethandler which can be used to redirect the debugging output from STDERR to another location, like a buffer or log file. To truly implement the debugging facility a LabVIEW-friendly output will need to be implemented. Most likely a wrapper function that takes a path to a file and this library automatically creates the function pointer to pass to the libssh2 library.

Enabling debugging during the build of the library also needs to be enabled for the libssh2_trace to be available.

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

No branches or pull requests

1 participant