Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Can't add a variable watch!

Can't add a variable watch!

Scheduled Pinned Locked Moved C#
visual-studiosysadminhelpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lord Kixdemp
    wrote on last edited by
    #1

    Hello everyone! Okay, I have a variable that gets changed to 0 somewhere in my code, and I want to know where. So I added a variable watch (VS 2005), however, on the watches list, it displays as this with an error icon to the left: ((Server.Client)((new System.Collections.ArrayList.ArrayListDebugView(this.clients)).Items[0])).id The type name 'Client' does not exist in the type 'Server.Server' First, I didn't know you could have a type inside another type. The variable I'm trying to add is public member id of the class Client. Server.Server is a class containing a custom ArrayList of Clients. Does anyone know why I'm getting that error? Thanks!

    Windows Calculator told me I will die at 28. :(

    J 1 Reply Last reply
    0
    • L Lord Kixdemp

      Hello everyone! Okay, I have a variable that gets changed to 0 somewhere in my code, and I want to know where. So I added a variable watch (VS 2005), however, on the watches list, it displays as this with an error icon to the left: ((Server.Client)((new System.Collections.ArrayList.ArrayListDebugView(this.clients)).Items[0])).id The type name 'Client' does not exist in the type 'Server.Server' First, I didn't know you could have a type inside another type. The variable I'm trying to add is public member id of the class Client. Server.Server is a class containing a custom ArrayList of Clients. Does anyone know why I'm getting that error? Thanks!

      Windows Calculator told me I will die at 28. :(

      J Offline
      J Offline
      Judah Gabriel Himango
      wrote on last edited by
      #2

      Try typing the fully qualified name of Client in the watch window.

      Tech, life, family, faith: Give me a visit. I'm currently blogging about: How men in the Catholic Church replaced Passover with Easter The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups