|
The first program I ever paid money for was a debugger. That was around 1979 and I still have it on tape. Sometimes I even use it when testing new stuff in the emulator.
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
CDP1802 wrote: printf() was the debugger for those that did not know that they had a debugger
Need that on a t-shirt!
|
|
|
|
|
CDP1802 wrote: printf() was the debugger for those that did not know that they had a debugger I debugged image alteration and analysis algorithms via printf before knowing of the debugger.
DURA LEX, SED LEX
GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X
If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver
When I was six, there were no ones and zeroes - only zeroes. And not all of them worked. -- Ravi Bhavnani
|
|
|
|
|
By pure luck my first program I ever bought was a debugger, so I never really had to resort to doing something like that. At least until the day came when I had to debug a multithreaded monster where hitting a breakpoint would have been fatal.
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
Luckily I use VisualStudio so for mono-process multi-thread there's the option of blocking every thread and noone gets hurt usually (except the timeouts based on the system high resolution timer). Multiprocess multithread isn't something I ever did so I wouldn't know, but without careful design and tracing they should be hell...
DURA LEX, SED LEX
GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X
If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver
When I was six, there were no ones and zeroes - only zeroes. And not all of them worked. -- Ravi Bhavnani
|
|
|
|
|
Even those who knew they had a debugger often preferred printf for many debug tasks.
|
|
|
|
|
Try Console.WriteLine or Debug.WriteLine : they both go to the Output pane in the Debugger.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Cosnole.Writeline IIRC is neat because it allows for output redirection for free.
DURA LEX, SED LEX
GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X
If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver
When I was six, there were no ones and zeroes - only zeroes. And not all of them worked. -- Ravi Bhavnani
|
|
|
|
|
Debug.WriteLine is handy, because it's permanent - it's automatically conditional on the DEBUG flag, so it doesn't add overhead in production. Console.WriteLine always tries to output.
Plus, Debug writes to the Listeners collection, so you can add a more permanent trace to a file or similar as well as the Output pane.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Nice, I knew that it is conditionally compiled - as it was Debug.Print in the old VB6, but I didn't know about the Listeners collection.
DURA LEX, SED LEX
GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X
If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver
When I was six, there were no ones and zeroes - only zeroes. And not all of them worked. -- Ravi Bhavnani
|
|
|
|
|
Yeah but no, WriteLine() does the same thing but is harder to type! I have even used to some one else 'oh just use a printf() to a label' and got a blank look... printf was for printing every one knew what it did! WriteLine() sense changes as opposed to what it's being pointed to printf() just sent stuff. I'm being grumpy to day, I got to have my picture taken for the web site...
|
|
|
|
|
As soon as it's taken, either grow a beard, or shave it off...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
I think Write is closer to printf , since WriteLine inserts newline and printf doesn't.
If you're using C# 6, you can add using static System.Console at the top of your file, and then you can just type Write instead of Console.Write . That way it's not much more typing than printf, aside from having the hold shift to type the capital W.
|
|
|
|
|
OriginalGriff wrote: Console.WriteLine or Debug.WriteLine In C/C++?
|
|
|
|
|
with MFC
|
|
|
|
|
Rage wrote: with MFC Burn the witch!
|
|
|
|
|
One of the lesser joys of switching jobs is that you get a new OS version. What I have is English Win10 with English as well as Swedish keyboards. What I wanted was to have Swedish keyboard as default . In Win7 this was a bit tricky, I think it took me 10 maybe 15 minutes to find. Annoying but not bad.
Win10 greets me with an abundance of really pretty high-res landscape photos on the lock screen.
"Nice but... er... hello? I would like to switch the default keyboard, where did you gents hide that setting this time?"
"Ask Windows help. Ask Google you dummy!"
I already did and this Super User was happy to teach me:
keyboard - Setting the default input method for the Windows 10 login screen - Super User[^]
I tried that something like 10 times over the last three weeks. Nope.
I tried to peek and poke around with highly limited success. Then, just now I found:
Control Panel\Clock, Language, and Region\Language\Advanced settings => Override for default input method
It works fine now, or at least for the first minute. I am really, really, looking forward to Win11.
... such stuff as dreams are made on
|
|
|
|
|
megaadam wrote: I am really, really, looking forward to Win11. Any minute now they will say 'Ooops' once again and go on with their next version. Probably it will not be Win11. They skip the odd versions now and pretend nothing has happened, so it will be Win12, or Welve.
I really don't want to know what they will come up with next.
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
CDP1802 wrote: They skip the odd versions now
Isn't every version odd these days?
I came into this game for the action, the excitement. Go anywhere, travel light, get in, get out, wherever there's trouble, a man alone. Now they got the whole country sectioned off, you can't make a move without a form.
modified 31-Aug-21 21:01pm.
|
|
|
|
|
megaadam wrote: I am really, really, looking forward to Win11
Why?
At the current rate of - I hesitate to call it this - progress, it'll be even worse. Win 8 with a Ribbon and Clippy anybody?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Minus some popular features, plus some obfuscations and plus some new features nobody wants.
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
So so cynical! So So pessimistic!
I've gotten out of bed on a good side this AM: maybe the next version of windows will be Window D.O.S., or, as has been hinted all along:
WinDOwS
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
I'd like to think that Windows Server Core might be a step in the right direction but if I did I'm sure I'd be disappointed.
|
|
|
|
|
That was no problem for me. I've never had any trouble finding that particular setting.
But I do have another very strange language related issue with Win 10: I have Swedish keyboard as default (living in Sweden) and Danish keyboard as backup (because I'm Danish). The English keyboard, I have uninstalled because I don't need it, having the two others.
So that would mean that if I press Alt + Shift repeatedly, it should cycle between Swedish and Danish keyboard. But it doesn't! It even includes English - even though it's uninstalled!
I've got the same setup on two computers, but only one of them does this! Go figure!!!
Anything that is unrelated to elephants is irrelephant Anonymous
- The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944
- I'd just like a chance to prove that money can't make me happy. Me, all the time
|
|
|
|
|
That is a feature intended to remind you that Danish is not an equal to Swedish.
... such stuff as dreams are made on
|
|
|
|