Issue with code

43 posts / 0 new
Last post
AUS-LGBT's picture
Could you tell me how I can

Could you tell me how I can get the debugger to work? Mine's just blanked out

LogicFTW's picture
Which compiler/debug tools

@AUS-LGBT
Which compiler/debug tools are you using? Are you using MS visual studio?

Sorry about my delayed response, this time of the year is a busy busy time for me. I do have a bit of time today and tomorrow, as I need a little bit of down time for myself if I am to stay competent.

 
 

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

▮          I am an atheist that always likes a good debate.          ▮
▮   Please include @LogicFTW in responses directed to me.    ▮
▮        Useful list on forum usage. A.R. Member since 2016.      ▮
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

AUS-LGBT's picture
Yep :) I'm a little confused

Yep :) I'm a little confused about how it works

Attachments

Attach Image/Video?: 

Yes
LogicFTW's picture
Well, let us back up here a

Well, let us back up here a bit, is this a single programing project to get through a class or to do something or are you exploring a career in coding?

Microsoft visual studio is a great program that aids coding, especially for folks new at it. But it does have it's own learning curve. It is worth learning if you are going to continue to do more coding, but it may be more work if you are just trying to get through 1 class of coding.

I particularly like MS Visual Studio because of how neatly it integrates with other MS tools. You can seamlessly connect to excel access and most importantly MS SQL databases. I left behind most of the debugging/editor/compiling tools once I began to master various programming languages as at one point they start to get more in the way then help a natural progression for most career coders.

That said, it could be as simple as: you need to highlight the section of code that you want it to look at and "debug" you can also set it to debug after a compile, a lot of the debugging happens as soon as you put the code in, just like in MS word, you will see red squiggly lines under things MS VS see's as possibly wrong. Or yellow/grey ones on ones it wants to alert you as possible problems. Find and replace can also be your friend when you start naming things (this applies more to other coding languages then html.)

It is also by far the fastest way to make window forms, creating a very professional looking program on the level of what we are all familiar with within MS windows is actually scary easy.

You probably want to make use of all its web-site editor tools. You do not even have to know the base underline code as much of it is drag and drop and resize etc etc. Ofcourse if this is a class assignment to write strictly in html, the teacher will know real fast if you "cheated" by having MS VS do all the heavy lifting code wise while all you did was drag and drop and fill out a few text boxes.

HOWEVER, that said, if you look past all the header stuff and all the other crap MS VS puts in (in effort to make it work on as many platforms as possible,) you can use the html code MS VS generates as a "guideline" on how to do it yourself in html.

Coding in general is interesting, you cannot flatout plagiarize what other people have done, (especially for a school project!) but at the same time everything you do is built upon work other people have done, chances are, especially when you are starting out, the code has already been written and is usable to all in the vast "libraries" of code (classes, objects etc) and your only job is to make them all play nice with each other which can require a solid understanding of the code even if you did not write it yourself.

Whoops this post went long, well try the highlight trick (wouldn't that be nice if it were so simple!) if that does not work let me know about what you are ultimately trying to do here. Is it a class assignment? Are you just trying to make a website? (There are easier ways then learning html!!)

Scanning through the rest of thread it looks like you are mostly running into file naming issues. I do recall when I first started to learn code I struggled with that stuff as well. Don't know how to describe it, but one day you "get it." When it comes to file naming conventions and how to tie all that stuff together. You learn to "think" like a computer and a compiler after a while. What is the name of the file? Does it match exactly (cap sensitive in most coding languages!) Where is this file located?

The basic format, at least for html5 should look like the example in this link below, (you obviously would have to fill out the real work yourself,) but for a basic template to try and match your work to would be the example in this link: https://www.w3schools.com/html/html5_intro.asp
Then the compiler/debugger/editor will know at least where to start when pointing out problems for you.
 
 

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

▮          I am an atheist that always likes a good debate.          ▮
▮   Please include @LogicFTW in responses directed to me.    ▮
▮        Useful list on forum usage. A.R. Member since 2016.      ▮
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

LogicFTW's picture
Also: print screen button on

Also: print screen button on your keyboard (if you have a full size windows based keyboard) and imgur (https://imgur.com/upload) or other sites like it are your friend if you do not want to copy/paste your code into pastebin or the like.

Windows 7 and up also includes "snipping tool" if print screen is not to your liking. (It gives you more control.)
Hit the windows key, and type in: "snip" without the quotes and it should come up.

None of these options require any login to use or money.

AUS-LGBT's picture
Thanks for that :)

Thanks for that :)
I'm actually just doing this as a hobby. I've been using what I found online to do what I've done so far, but I do intend to keep coding so Microsoft visual studio looks good.
I purposefully left my mistake that I was having trouble with before in MVS to see if it picks it up. I tried what you mentioned, highlighting the specific code and then going to debug but the debug option is still blanked out. I'm not sure how to compile? I haven't seen an option for it in any of the tabs.
Oh I think it's worth mentioning I went back to check out the code and there is yellow lines next to the code with issues, is that debugging?

arakish's picture
Let's see if this works...

Let's see if this works...

https://pastebin.com/6Hc8LYA5

rmfr

EDIT: Yep. It worked. Thanks Logic. That will work great.

arakish's picture
A good web site to use is

A good web site to use is W3Schools (no relationship with the W3C). I have used it quite extensively since its first inception.

rmfr

LogicFTW's picture
Agreed, I point people there

Agreed, I point people there all the time. I even have contributed code to that site. I love sites like that, where their only goal is to help people learn, not make buckets of money while doing it like most universities...

 
 

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

▮          I am an atheist that always likes a good debate.          ▮
▮   Please include @LogicFTW in responses directed to me.    ▮
▮        Useful list on forum usage. A.R. Member since 2016.      ▮
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

Nyarlathotep's picture
Yeah, this forum parses posts

Yeah, this forum parses posts for greater than, and less than symbols, which makes posting raw html code here difficult.

Kreston's picture
Based on my experience, I can

Based on my experience, I can say that not everyone knows how to work correctly with programs and files. In this regard, I want to share with you a convenient tool for rotating PDF pages https://www.pdfplatform.com/rotate. This tool will definitely make your life easier. I often receive documents in PDF format and use this free tool to correct pages.

MaxAdams's picture
I didn't think to find a

I didn't think to find a programming topic on this forum. I myself am currently studying programming and was very surprised by this. By the way, I had a similar problem when I changed the CSS code for prospect management systems, website - http://getprospect.com/crm . It is an online tool for email marketing. Then I found a solution on the stackoverflow website

Pages

Donating = Loving

Heart Icon

Bringing you atheist articles and building active godless communities takes hundreds of hours and resources each month. If you find any joy or stimulation at Atheist Republic, please consider becoming a Supporting Member with a recurring monthly donation of your choosing, between a cup of tea and a good dinner.

Or make a one-time donation in any amount.