Desktop application needs server side debugging - c

I am working on client server windows desktop application. The client is in VC++ and server is written in c. When the client sends the commands to server through tcp/ip, the server does some processing and returns some string.
I want to if there are any tools which can help me in debugging at the server side(unix platform), when I run the client on windows.
Is there a way I can use GDB debugger?
Thanks in advance.
RK

The easiest way would be to get ssh access to the server and attach gdb to the process. It would also help if the process was compiled with debug flags.

Related

start batchscript on remote host over ssh

i have this setup:
1 Host with Windows 10 and Cygwin Unix Tools (for a unix filesystem and the open-ssh server).
2 On the Other side there is another Linux Gentoo client.
Is there any chance to execute batch file on the host?
Like this 'ssh name#host start data.bat'?
U guys would help me a lot <3
If we you want to run command/script on the Windows 10 host, you need a SSH server set up on Windows. Although there are some rumors that Windows Powershell will have built-in SSH server support, I did not aware that it is released yet.
That being said, you have any third party tools to set it up . For example, check here.

Enable Remote connections on SQL Server 2005 command line

A client I'm working with needs his SQL Server 2005 to accept remote connections, but I've only got a telnet shell to work with. I can't get any GUI on this remote computer, only a command shell.
So, is it possible, in any way, to enable remote connections on it ?
I've tried sqlcmd in my shell, but even when I'm specifying localhost as the address, it says that remote connections aren't allowed.
Any help would be great :)
Okay I definitely feel bad :D
When I saw the SQL server installation, I assumed they were using it but they weren't...
It was just another type of database.
Anyway, thanks for your help and for your time!

jar file not connecting to the database

i created a java project long back which requires connection to derby which is an inbuilt netbeans database. i always used to open netbeans, compile the files and run and it used to work just fine. then i learnt how to make a jar file out of it on netbeans and i did it.now when i run the jar file it does not connect to the database.when i login it just gets stuck up cause apparently is not connecting to db. could anyone plz help me out? Thanking you in advance.
P.S. Please be very simple in your explanation. I am good with coding but not in understanding a lot of programming jargon. try to explain me like a u would explain a layman if possible.
You are using the ClientDriver, which means your Java program is attempting to connect to the Derby Network Server running on your same machine ("localhost") at port 1527.
If that connection is not working, the simplest explanation is that the Derby Network Server is not running at the moment that you run your Java program.
The commands you are running in Netbeans ("Go To Services in Netbeans and Connect") may be automatically starting a Derby Network Server for you.
You can start a Derby Network Server on your own. It's just another Java program; the Derby binary distribution contains some scripts that you can run to start it. Go here to read about how to start up the Derby Network Server and configure it so that it knows where your Ayush database is: http://db.apache.org/derby/docs/10.10/getstart/twwdactivity4.html and also: http://db.apache.org/derby/docs/10.10/adminguide/cadminconfig86869.html#cadminconfig86869

Executing batch file on Windows 2008 server from CentOS Jenkins instance

I have a Jenkins instance running on CentOS and would like the ability to connect to a Windows 2008 virtual server and have execute and write permissions.
Some threads have suggesting CYGWIN, installing on the windows machine and then using SSH to connect. There are also suggestions of telnet and RDP. I wanted to know if there is a recommended approach.
Thanks
You can connect a windows slave node into your main server
https://wiki.jenkins-ci.org/display/JENKINS/Step+by+step+guide+to+set+up+master+and+slave+machines
as mentioned earlier in a comment
I have to make Delphi builds on windows with my main jenkins installation is on a CentOS server.
You just need to configure the windows machine as jenkins slave. Java web start is a quick and easy solution (2 minutes) for that:
https://wiki.jenkins-ci.org/display/JENKINS/Distributed+builds#Distributedbuilds-LaunchslaveagentviaJavaWebStart
Or step-by-step here: https://wiki.jenkins-ci.org/display/JENKINS/Step+by+step+guide+to+set+up+master+and+slave+machines
Then on "Project setup" check the "Restrict where this project can be run" and write down the slave name. (There will be time later for more complicated expressions)
Finally istruct your project to exec windows commands adding one of those plugins
https:// wiki.jenkins-ci.org/display/JENKINS/PowerShell+Plugin
https:// wiki.jenkins-ci.org/display/JENKINS/Windows+Exe+Runner+Plugin
(sorry for the broken links but it doesn't let me post more than two)
If it's just a few times use netcat.
Otherwise use cygwin and ssh like you said.

SQL Server Remote Debugging Across Different Domains

I'm running VS2008 on my client machine and I'm running SQL 2000 on the remote db server which is on a different domain. I am able to remote desktop to the remote computer and use query analyser to debug, however it doesn't work when I try it remotely. I don't get any errors and when I try and step into the sp it doesn't halt.
From the research I have done it looks like the client PC is trying to attach to a process on the remote machine. However since this is on an another domain the user that VS 2008 uses won't be able to authenticate with the remote machine.
I believe this possible but my question is what do I need to configure to make this work, or is there any additional software that I require for this. I've tried using the VS Remote debugging monitor on the db server, but not sure whether I'm barking up the wrong tree with this.
Thanks
The knowledgebase article INF: Transact-SQL Debugger Limitations and Troubleshooting Tips for SQL Server 2000 may still be relevant/helpful (although obviously, they've fixed the first mentioned limitation concerning terminal services/remote desktop)

Resources